package com.woniu.sharepark.propertysystem.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.woniu.sharepark.common.pojo.UserInfo;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 物业方查看订单的实体类
 * @author zy
 * @date 2019/6/11 15:03
 */
public class OrderDTO {

    private Integer oId;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    private Date oTime;

    private String oNumber;

    private Integer carId;

    private Integer cId;

    private String oStatus;

    private Integer oDuration;

    private Double oTotalmoney;

    private Integer oFlag;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    private Date oEndtime;

    private Integer sId;

    private Double sRent;

    private Double sCommunity;

    private Double sSystem;

    private UserInfo userInfoCar;

    private UserInfo userInfoCarpark;

    public UserInfo getUserInfoCar() {
        return userInfoCar;
    }

    public void setUserInfoCar(UserInfo userInfoCar) {
        this.userInfoCar = userInfoCar;
    }

    public UserInfo getUserInfoCarpark() {
        return userInfoCarpark;
    }

    public void setUserInfoCarpark(UserInfo userInfoCarpark) {
        this.userInfoCarpark = userInfoCarpark;
    }

    public Integer getoId() {
        return oId;
    }

    public void setoId(Integer oId) {
        this.oId = oId;
    }

    public Date getoTime() {
        return oTime;
    }

    public void setoTime(Date oTime) {
        this.oTime = oTime;
    }

    public String getoNumber() {
        return oNumber;
    }

    public void setoNumber(String oNumber) {
        this.oNumber = oNumber;
    }

    public Integer getCarId() {
        return carId;
    }

    public void setCarId(Integer carId) {
        this.carId = carId;
    }

    public Integer getcId() {
        return cId;
    }

    public void setcId(Integer cId) {
        this.cId = cId;
    }

    public String getoStatus() {
        return oStatus;
    }

    public void setoStatus(String oStatus) {
        this.oStatus = oStatus;
    }

    public Integer getoDuration() {
        return oDuration;
    }

    public void setoDuration(Integer oDuration) {
        this.oDuration = oDuration;
    }

    public Double getoTotalmoney() {
        return oTotalmoney;
    }

    public void setoTotalmoney(Double oTotalmoney) {
        this.oTotalmoney = oTotalmoney;
    }

    public Integer getoFlag() {
        return oFlag;
    }

    public void setoFlag(Integer oFlag) {
        this.oFlag = oFlag;
    }

    public Date getoEndtime() {
        return oEndtime;
    }

    public void setoEndtime(Date oEndtime) {
        this.oEndtime = oEndtime;
    }

    public Integer getsId() {
        return sId;
    }

    public void setsId(Integer sId) {
        this.sId = sId;
    }

    public Double getsRent() {
        return sRent;
    }

    public void setsRent(Double sRent) {
        this.sRent = sRent;
    }

    public Double getsCommunity() {
        return sCommunity;
    }

    public void setsCommunity(Double sCommunity) {
        this.sCommunity = sCommunity;
    }

    public Double getsSystem() {
        return sSystem;
    }

    public void setsSystem(Double sSystem) {
        this.sSystem = sSystem;
    }

    public OrderDTO() {
    }

    @Override
    public String toString() {
        return "OrderDTO{" +
                "oId=" + oId +
                ", oTime=" + oTime +
                ", oNumber='" + oNumber + '\'' +
                ", carId=" + carId +
                ", cId=" + cId +
                ", oStatus='" + oStatus + '\'' +
                ", oDuration=" + oDuration +
                ", oTotalmoney=" + oTotalmoney +
                ", oFlag=" + oFlag +
                ", oEndtime=" + oEndtime +
                ", sId=" + sId +
                ", sRent=" + sRent +
                ", sCommunity=" + sCommunity +
                ", sSystem=" + sSystem +
                ", userInfoCar=" + userInfoCar +
                ", userInfoCarpark=" + userInfoCarpark +
                '}';
    }
}
